package com.huawei.appgallery.foundation.ui.css.adapter;

import android.text.TextUtils;
import com.huawei.appgallery.foundation.ui.css.adapter.param.MethodSignature;
import java.util.HashMap;
import java.util.Map;

public class CSSPropertyMethod {
    protected Map<String, MethodSignature> methods = new HashMap();

    public CSSPropertyMethod add(String str, MethodSignature methodSignature) {
        if (!(TextUtils.isEmpty(str) || methodSignature == null)) {
            this.methods.put(str, methodSignature);
        }
        return this;
    }

    public MethodSignature getSignature(String str) {
        return (MethodSignature) this.methods.get(str);
    }

    public CSSPropertyMethod inherit(CSSPropertyMethod cSSPropertyMethod) {
        this.methods.putAll(cSSPropertyMethod.methods);
        return this;
    }
}
